﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="com.huigo.B2B.Web.center.order.OrderList"
    MasterPageFile="~/master/CenterMain.Master" %>

<%@ Register Assembly="AspnetPagerV1" Namespace="AspnetPagerV1" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3 class="greybg">
        我的订单</h3>
    <div>
        <form id="Form1" runat="server" class="form-search">
        <label>订单号</label><asp:TextBox ID="policyName" runat="server"></asp:TextBox>
        <label>订单时间</label>
        <div class="input-append date" data-date="@DateTime.Now.AddMonths(-1).ToString('yyyy-MM-dd')"
            data-date-format="yyyy-mm-dd">
            <asp:TextBox ID="beginDate" runat="server" Columns="8" data-date-format="yyyy-mm-dd"></asp:TextBox>
            <span class="add-on"><i class="icon-calendar"></i></span>
        </div>
        &nbsp;-&nbsp;<div class="input-append date" data-date="@DateTime.Now.AddMonths(-1).ToString('yyyy-MM-dd')"
            data-date-format="yyyy-mm-dd">
            <asp:TextBox ID="endDate" runat="server" Columns="8" data-date-format="yyyy-mm-dd"></asp:TextBox>
            <span class="add-on"><i class="icon-calendar"></i></span>
        </div>
        <br /><br />
        <label>订单状态</label><asp:DropDownList ID="statusList" runat="server">
        </asp:DropDownList>
        <label>保险公司</label><asp:DropDownList ID="insList" runat="server">
        </asp:DropDownList>
        <label>保单类型</label><asp:DropDownList ID="proType" runat="server">
        </asp:DropDownList>
        &nbsp;&nbsp;
        <asp:Button ID="btnQuery" CssClass="button btn-big btn-orange" runat="server" Text="查询" OnClick="btnQuery_Click" />
        </form>
    </div>
   <%=Notiy %>
    <asp:Repeater ID="OrderListContent" runat="server">
        <HeaderTemplate>
            <table class="table table-bordered table-striped responsive-utilities table-hover">
                <thead>
                    <tr>
                        <th>
                            订单号
                        </th>
                        <th>
                            保险名称
                        </th>
                        <th>
                            被保人数
                        </th>
                        <th>
                            订单金额
                        </th>
                        <th>
                            订单时间
                        </th>
                        <th>
                            订单状态
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <a href="OrderDetail.aspx?id=<%#Eval("OrderId") %>" target="_blank">
                        <%#Eval("OrderNo")%></a>
                </td>
                <td>
                    <%#Eval("ProductName")%>
                </td>
                <td>
                    <%#Eval("OrderPersonCount") %>
                </td>
                <td>
                    <%#string.Format("{0:C2}", Convert.ToDecimal(Eval("OrderAmount")))%>
                </td>
                <td>
                    <%# Convert.ToDateTime(Eval("OrderCreatedOn").ToString().Replace("T", "  ")).ToString("yyyy-MM-dd HH:mm:ss")%>
                </td>
                <td>
                    <%#Eval("StatusDesc")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody></table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:Pager ID="pageInfo" runat="server" OnPageChanged="pageInfo_PageChanged" PageSize="10"
        PreText="上一页" NextText="下一页" ShowPreNext="true" NumericButtonCount="10" Css="page" />
</asp:Content>
